const state = {
  userInfo: '',
  userCode: '',
  userName: ''
}

const mutations = {
  SET_USER_INFO(state, userInfo) {
    state.userInfo = userInfo
    state.userCode = userInfo.userCode
    state.userName = userInfo.userName
  }
}

const actions = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
